<template>
  <el-tabs v-model="activeName" type="card" class="bColorT">
    <el-tab-pane v-for="tab in tabs" :key="tab.name" :label="tab.label" :name="tab.name">
      <component :is="tab.name" />
    </el-tab-pane>
  </el-tabs>
</template>

<script>
import { Apply } from './list';

export default {
  name: 'Index',
  components: {
    Apply
  },
  data () {
    return {
      activeName: '',
      tabs: [{
        label: '考证报名',
        name: 'Apply'
      }]
    };
  },
  created () {
    this.activeName = this.tabs[0].name;
  }
};
</script>

<style lang="scss" scoped>
</style>
